<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/reward.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			
		}
	});
	$('#editRewardForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div>
	<h3>编辑奖惩信息</h3>
</div>
<div style="width:400px;float:left;">
	<div>
		<form id="editRewardForm">
			<table class="table table-bordered">
				<tr><td class="table-left">奖惩员工姓名</td>
					<td><@mte.User id='selection2' name='uc' nullstr='请选择' organCode=(cu_organCode) classname="uniformselect"/></td>
				</tr>
				<tr height="40">
					<td  style="width: 80px;">奖惩类型</td>
					<td style="width:200px;">
						<select name = "rtype" id = "rtype">  
						      <option value ="1">奖励</option>  
						      <option value ="2">惩罚</option>  
				      	</select>
		        	</td>
				</tr>
				<tr>
					<td>奖惩原因</td>
					<td><textarea name="reason" id="reason" value="${(reward.reason)!''}"/></td>
				</tr>
				<tr>
					<td>奖惩内容</td>
					<td><textarea name="content" id="content" value="${(reward.content)!''}"/></td>
				</tr>
				<tr height="40">
					<td colspan="2" style="text-align: center;">
						<a href="#" class="btn btn-info" onclick="javascript: save_reward(); return false;">
							<i class="icon-save"></i> &nbsp;保&nbsp;&nbsp;存
						</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" class="btn btn-primary" onclick="javascript: sys_load_handle('reward'); return false;">
							<i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消
						</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
